<template>
	<view class="container" @onclick="">
		<view class="card">
			<view class="imgBx">
				<image src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg" />
			</view>
			<view class="contentBx">
				<view>标题卡片带有一个双标题头部，右侧为额外描述信息,内容可自定义实现</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "IndexCard",
		data() {
			return {
				title: "抽奖！",
				extra: "技术！"
			};
		}
	}
</script>

<style>
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.container .card {
	margin: 20rpx 10rpx;
	padding: 10rpx;
	border-radius: 20rpx;
	box-shadow: -6rpx -6rpx 20rpx rgba(255, 255, 255, 1),
		6rpx 6rpx 20rpx rgba(0, 0, 0, .1);
}

.container .card .imgBx {
	position: relative;
	text-align: center;
	box-shadow: -4rpx -4rpx 15rpx rgba(255, 255, 255, 1),
		4rpx 4rpx 15rpx rgba(0, 0, 0, .1);
}

.container .card .contentBx {
	position: relative;
	margin-top: 20rpx;
	text-align: center;
}

.container .card .contentBx {
	display: inline-block;
	padding: 10rpx 20rpx;
	margin-top: 15rpx;
	border-radius: 20rpx;
	color: #aaaaaa;
	/* text-decoration: none; */
	box-shadow: -4rpx -4rpx 15rpx rgba(255, 255, 255, 1),
		4rpx 4rpx 15rpx rgba(0, 0, 0, .1);
}

.container .card .contentBx {
	box-shadow: inset -4rpx -4rpx 10rpx rgba(255, 255, 255, 0.5),
		inset 4rpx 4rpx 10rpx rgba(0, 0, 0, .1);
}
</style>
